<?php 
use yii\helpers\Html;
use app\components\ActiveForm; 
use yii\captcha\Captcha; 
 
 if(Yii::$app->session->hasFlash('save')){
   Yii::$app->session->remove('save');
     ?>修改成功<?php
 }
  $form = ActiveForm::begin(); ?>
                
                <?= $form->field($model, 'password_old')->passwordInput() ?>
                <?= $form->field($model, 'password')->passwordInput() ?>
              <?= $form->field($model, 'password2')->passwordInput() ?>
                <?php // $form->field($model, 'verifyCode')->widget(Captcha::className(), [
                  ///  'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
             //   ]) ?>
          <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
             'captchaAction'=>'/admin/site/captcha'
                ]) ?>
     
                <div class="form-group">
                    <?= Html::submitButton('提交', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
                </div>
            <?php ActiveForm::end(); ?>
   